#!/bin/sh

#
# Test that the "new" metadata fields work.
# This wasn't added to the other metadata test since it's desirable that
# fwup.conf files that don't support the new metadata still output .fw files
# without it.
#

. "$(cd "$(dirname "$0")" && pwd)/common.sh"

cat >$CONFIG <<EOF
meta-vcs-identifier = "0e919751fc38196f2486b0c98ded91013eb9baa3"
meta-misc = "Some misc. stuff"
EOF

cat >$EXPECTED_META_CONF <<EOF
meta-vcs-identifier="0e919751fc38196f2486b0c98ded91013eb9baa3"
meta-misc="Some misc. stuff"
EOF

$FWUP_CREATE -c -f $CONFIG -o $FWFILE

# Check that the zip file was created as expected
check_meta_conf

# Check that the verify logic works on this file
$FWUP_VERIFY -V -i $FWFILE
